package org.uk.splitsbrowser.shared;

/**
 * Nationality class shared between client/server - returns a static list of all
 * nationalities.  Just use a static list rather than sharing in the database
 */
class Nationality {
	private String isoCode;
	private String name;

	Nationality(String name, String isoCode) {
		this.name = name;
		this.isoCode = isoCode;
	}

	private static Nationality[] nationalities = { 
			new Nationality("Argentina", "ARG"),
			new Nationality("Australia", "AUS"),
			new Nationality("Austria", "AUT"),
			new Nationality("Belgium", "BEL"),
			new Nationality("Belorussia", "BLR"),
			new Nationality("Brazil", "BRA"),
			new Nationality("Bulgaria", "BUL"),
			new Nationality("Canada", "CAN"), 
			new Nationality("Chile", "CHI"),
			new Nationality("China", "CHN"),
			new Nationality("Chinese Taipei", "TPE"),
			new Nationality("Colombia", "COL"),
			new Nationality("Croatia", "CRO"), 
			new Nationality("Cuba", "CUB"),
			new Nationality("Czech Republic", "CZE"),
			new Nationality("Denmark", "DEN"),
			new Nationality("Ecuador", "ECU"),
			new Nationality("Estonia", "EST"),
			new Nationality("Finland", "FIN"),
			new Nationality("France", "FRA"),
			new Nationality("Germany", "GER"),
			new Nationality("Great Britain", "GBR"),
			new Nationality("Greece", "GRE"),
			new Nationality("Hong Kong", "HKG"),
			new Nationality("Hungary", "HUN"), 
			new Nationality("India", "IND"),
			new Nationality("Indonesia", "INA"),
			new Nationality("Ireland", "IRL"),
			new Nationality("Israel", "ISR"), 
			new Nationality("Italy", "ITA"),
			new Nationality("Jamaica", "JAM"), 
			new Nationality("Japan", "JPN"),
			new Nationality("Kazakhstan", "KAZ"),
			new Nationality("Korea", "KOR"), 
			new Nationality("Korea", "PRK"),
			new Nationality("Latvia", "LAT"),
			new Nationality("Lithuania", "LTU"),
			new Nationality("Macedonia", "MKD"),
			new Nationality("Malaysia", "MAS"),
			new Nationality("Moldova", "MDA"),
			new Nationality("Netherlands", "NED"),
			new Nationality("New Zealand", "NZL"),
			new Nationality("Norway", "NOR"),
			new Nationality("Pakistan", "PAK"),
			new Nationality("Poland", "POL"),
			new Nationality("Portugal", "POR"),
			new Nationality("Romania", "ROM"),
			new Nationality("Russia", "RUS"),
			new Nationality("Slovakia", "SVK"),
			new Nationality("Slovenia", "SLO"),
			new Nationality("South Africa", "RSA"),
			new Nationality("Spain", "ESP"), 
			new Nationality("Sweden", "SWE"),
			new Nationality("Switzerland", "SUI"),
			new Nationality("Ukraine", "UKR"),
			new Nationality("United States", "USA"),
			new Nationality("Uruguay", "URU"),
			new Nationality("Venezuela", "VEN"),
			new Nationality("Yugoslavia", "YUG"),
			new Nationality("Other", "---") };

	static Nationality[] getList() {
		return nationalities;
	}

	public String getIsoCode() {
		return isoCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
